import request from '@/utils/http';

interface user {
    userName: string;
    password: string;
    [propName: string]: any;
}

export  function addUser(data:user){
    return request({
        method: 'POST',
        url: '/user',
        data
    })
}

export  function login(data:user){
    return request({
        method: 'POST',
        url: '/login',
        data
    })
}


export  function getUser(data:user){
    return request({
        method: 'get',
        url: '/user',
        data
    })
}